﻿using System.Runtime.Serialization;

namespace Baggr.FeedParser.Atom
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Xml;

    /// <summary>
    /// Фид типа ATOM.
    /// </summary>
    public sealed class AtomFeed1
        :ISerializable
    {
        /// <summary>
        /// Документ фида.
        /// </summary>
        private readonly XmlDocument _Document;

        /// <summary>
        /// Identifies the feed using a universally unique and permanent URI. If you have a long-term, renewable lease on your Internet domain name, then you can feel free to use your website's address.
        /// </summary>
        /// <example>
        /// http://example.com/
        /// </example>
        private string _Id;

        /// <summary>
        /// Contains a human readable title for the feed. Often the same as the title of the associated website. This value should not be blank. 
        /// </summary>
        /// <example>
        /// Example, Inc.
        /// </example>
        private string _Tittle;

        /// <summary>
        /// Indicates the last time the feed was modified in a significant way. 
        /// </summary>
        /// <example>
        /// 2003-12-13T18:30:02Z
        /// </example>
        private DateTime _Updated;

        /// <summary>
        /// Конструктор класса.
        /// </summary>
        /// <param name="document">
        /// Документ фида.
        /// </param>
        public AtomFeed1(XmlDocument document)
        {
            if (document == null)
                throw new ArgumentNullException("document");
            _Document = document;
        }

        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            throw new NotImplementedException();
        }
    }
}
